

<div class="actions">
    <h3><?php __('Actions'); ?></h3>
    <ul>
        <li><?php echo $this->Html->link(__('Ajouter Administrateur', true), array('action' => 'add')); ?></li>
        <li><?php echo $this->Html->link(__('Lister Groupes', true), array('controller' => 'groups', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('Ajouter Groupe', true), array('controller' => 'groups', 'action' => 'add')); ?> </li>

    </ul>
</div>

<div class="admins index">
    <h2><?php __('Administrateurs'); ?></h2>
    <table cellpadding="0" cellspacing="0">
        <tr>
                        <!--<th><?php echo $this->Paginator->sort('id'); ?></th>-->
            <th><?php echo $this->Paginator->sort('group_id'); ?></th>
            <th><?php echo $this->Paginator->sort('user'); ?></th>
            <!--<th><?php echo $this->Paginator->sort('mot-passe'); ?></th>-->
            <th><?php echo $this->Paginator->sort('nom'); ?></th>
            <th><?php echo $this->Paginator->sort('prenom'); ?></th>
            <!-- <th><?php echo $this->Paginator->sort('created'); ?></th>
            <th><?php echo $this->Paginator->sort('modified'); ?></th> -->
            <th class="actions"><?php __('Actions'); ?></th>
        </tr>
        <?php
        $i = 0;
        foreach ($admins as $admin):
            $class = null;
            if ($i++ % 2 == 0) {
                $class = ' class="altrow"';
            }
        ?>
            <tr<?php echo $class; ?>>
                    <!-- <td><?php echo $admin['Admin']['id']; ?>&nbsp;</td> -->
            <td>
<?php echo $this->Html->link($admin['Group']['name'], array('controller' => 'groups', 'action' => 'view', $admin['Group']['id'])); ?>
            </td>
            <td><?php echo $admin['Admin']['user']; ?>&nbsp;</td>
            <!-- <td><?php echo $admin['Admin']['mot-passe']; ?>&nbsp;</td> -->
            <td><?php echo $admin['Admin']['nom']; ?>&nbsp;</td>
            <td><?php echo $admin['Admin']['prenom']; ?>&nbsp;</td>
            <!--<td><?php echo $admin['Admin']['created']; ?>&nbsp;</td>
            <td><?php echo $admin['Admin']['modified']; ?>&nbsp;</td>  -->
            <td class="actions">
                <?php echo $this->Html->link(__('Regarder', true), array('action' => 'view', $admin['Admin']['id'])); ?>
<?php echo $this->Html->link(__('Editer', true), array('action' => 'edit', $admin['Admin']['id'])); ?>
<?php echo $this->Html->link(__('Effacer', true), array('action' => 'delete', $admin['Admin']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $admin['Admin']['id'])); ?>
            </td>
        </tr>
<?php endforeach; ?>
            </table>
            <p>
        <?php
                echo $this->Paginator->counter(array(
                    'format' => __('Page %page% de %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
                ));
        ?>	</p>

            <div class="paging">
<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class' => 'disabled')); ?>
        	 | 	<?php echo $this->Paginator->numbers(); ?>
                |
<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled')); ?>
    </div>
</div>
